package org.shiwen.week12;

import java.util.Scanner;

public class StringBuffer2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        StringBuffer sb = new StringBuffer(input);
        String reverse = sb.reverse().toString();
        System.out.println(reverse.equals( input));
    }
}
